package service

import (
	"fmt"

	"task/config"

	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/promauto"
)

var (
	consumerChLen = promauto.NewGauge(prometheus.GaugeOpts{
		Name: fmt.Sprintf("%s_consumer_channel", config.Conf.TaskMonitor.Name),
		Help: "Length of task monitor consumer channel.",
	})
)

// SetConsumerChLen set consumer channel length.
func SetConsumerChLen(value float64) {
	consumerChLen.Set(value)
}
